<<template>
        <el-container>
        <el-header class="topBox">
          <h1>工作台</h1>
          <div class="myBox">
            <img
              src="https://tse3-mm.cn.bing.net/th/id/OIP-C.TBazBTKhgdeun8QRasihDAAAAA?w=195&h=195&c=7&r=0&o=5&dpr=2&pid=1.7"
              alt=""
            />
            <span>神领物流管理员</span>
            <div class="quit" @click="quitPage">
              <img src="../../../assets/imgs/quit.png" alt="" />
            </div>
          </div>
        </el-header>
        <el-main>
          <RouterView></RouterView>
        </el-main>
      </el-container>
</template>>
<script setup>
import { RouterView } from 'vue-router';
import router from '../../../router/index';
import { useLoginStore } from '../../../store/useLoginStore';
const LoginStore = useLoginStore();
const quitPage = () => {
  LoginStore.DELTOKEN();
  router.push('/login');
};

</script>
<style scoped>
@import url(../index.less);
</style>